-- GENERATED SPELL FOR [Spectral Betrayer] --


function spell0_11288(pUnit, Event) --@Wither Strike,Heal--
pUnit:FullCastSpellOnTarget(5337,pUnit)
pUnit:RegisterEvent('Sorts_11288', 8321, 1)
end

function Sorts_11288(pUnit, Event)
local choix_sorts_11288 = math.random(0, 0)
if choix_sorts_11288 == 0 then
pUnit:RegisterEvent('spell0_11288', 1, 1)
end
end

function mob11288_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11288', math.random(1500, 3000), 1)
end

function mob11288_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11288_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11288_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11288, 1, 'mob11288_Action')
RegisterUnitEvent(11288, 2, 'mob11288_Leave')
RegisterUnitEvent(11288, 3, 'mob11288_Kill')
RegisterUnitEvent(11288, 4, 'mob11288_Die')
